package com.pg.auth.model.dto.sysuser;

import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;
import org.mapstruct.factory.Mappers;
import com.pg.auth.model.entity.SysUser;
import com.pg.auth.model.dto.sysuser.SysUserVO;
import java.util.List;


/***
 * 对象转换
 * @author : huhuaping
 * @Date : 2024-06-06 19:55:33
 */
@Mapper(componentModel = "spring", unmappedSourcePolicy = ReportingPolicy.IGNORE, unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface SysUserConvertor {

    SysUserConvertor INSTANCE = Mappers.getMapper(SysUserConvertor.class);

    SysUser dtoToDB(SysUserDTO sysUserDTO);

    SysUserVO dbToVO(SysUser sysUser);

    List<SysUserVO> listDbToVO(List<SysUser> list);
}
